package com.mejlisse.gwt.request;

import com.google.gwt.valuestore.shared.RecordChangedEvent;
import com.mejlisse.gwt.request.CommentRecord;
import com.mejlisse.gwt.request.CommentChangedHandler;
import org.springframework.roo.addon.gwt.RooGwtMirroredFrom;
import com.mejlisse.server.domain.Comment;
import com.google.gwt.event.shared.GwtEvent.Type;
import com.google.gwt.valuestore.shared.WriteOperation;

@RooGwtMirroredFrom(Comment.class)
public class CommentRecordChanged extends RecordChangedEvent<CommentRecord, CommentChangedHandler> {

    public static final Type<com.mejlisse.gwt.request.CommentChangedHandler> TYPE = new com.google.gwt.event.shared.GwtEvent.Type<com.mejlisse.gwt.request.CommentChangedHandler>();

    public CommentRecordChanged(CommentRecord record, WriteOperation writeOperation) {
        super(record, writeOperation);
    }

    public Type<com.mejlisse.gwt.request.CommentChangedHandler> getAssociatedType() {
        return TYPE;
    }

    protected void dispatch(CommentChangedHandler handler) {
        handler.onCommentChanged(this);
    }
}
